﻿Class Window1 

	Private Sub MyButton_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
		MyButton.IsEnabled = False
		MyLightBox.ShowImages()
	End Sub

	Private Sub MyLightBox_IsVisibleChanged(ByVal sender As System.Object, ByVal e As System.Windows.DependencyPropertyChangedEventArgs)
		MyButton.IsEnabled = (MyLightBox.Visibility = Windows.Visibility.Collapsed)
	End Sub

End Class
